package cn.exrick.xboot.modules.base.dao.mapper;

import cn.exrick.xboot.modules.base.dao.sqlprovider.UserHierarchySqlProvider;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import cn.exrick.xboot.modules.base.entity.UserHierarchy;
import org.apache.ibatis.annotations.SelectProvider;

import java.util.List;

/**
 * 岗位数据处理层
 * @author njp
 */
public interface UserHierarchyMapper extends BaseMapper<UserHierarchy> {

    /**
     * 获取用户的兼职列表
     * @param userHierarchy
     * @return
     */
    @SelectProvider(type = UserHierarchySqlProvider.class, method = "getUserHierarchys")
    List<UserHierarchy> getUserHierarchys(UserHierarchy userHierarchy);
}